package com.fjwt.gz.service.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fjwt.gz.db.dto.AwardEmployeeDTO;
import com.fjwt.gz.db.dto.EmployeeDistributeDTO;
import com.fjwt.gz.db.entity.AwardEmployeeEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fjwt.gz.db.vo.AwardEmployeeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 机构员工活动渠道表 Mapper 接口
 * </p>
 *
 * @author shiyonghao
 * @since 2025-04-09
 */
public interface AwardEmployeeMapper extends BaseMapper<AwardEmployeeEntity> {


    /**
     * 获取可派发员工列表
     *
     * @param iPage
     * @param couponId   卡券id
     * @param employeeNo 员工编号
     * @param awardType
     * @return
     */
    IPage<AwardEmployeeVO> getEmployeeDistributeList(IPage iPage, @Param("employeeDTO") AwardEmployeeDTO employeeDTO);

    /**
     * 批量添加卡券配置员工信息
     *
     * @param conpouId      卡券id
     * @param employeeArray 员工编号集合
     * @param awardType
     * @return
     */
    int saveEmployeeList( @Param("employeeArray") List<AwardEmployeeEntity> exportList);




}
